package org.example.bootvue.mapper;

import org.apache.ibatis.annotations.Select;
import org.example.bootvue.entity.Category;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author YourName
 * @since 2025-07-29
 */
public interface CategoryMapper extends BaseMapper<Category> {
    @Select("select * from category where create_user = #{userId}")
    List<Category> list(Integer userId);
    @Select("select * from category where id = #{id}")
    Category findById(Integer id);
}
